package com.yonyou.crm.sys.modules.rmimpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yonyou.crm.base.doc.service.BaseDocBizServiceImpl;
import com.yonyou.crm.sys.modules.entity.FieldVO;
import com.yonyou.crm.sys.modules.rmitf.IFieldRmService;
import com.yonyou.crm.sys.modules.service.FieldBizServiceImpl;

	
@Service
public class FieldRmServiceImpl implements IFieldRmService {
	
	@Autowired
	private FieldBizServiceImpl bizService;
	@Autowired
	private BaseDocBizServiceImpl baseDocService;
	
	@Override
	public List<FieldVO> getFieldList(Long objId) {
		return bizService.getFieldList(objId);
	}

	@Override
	public FieldVO getField(String fullname) {
		return bizService.getField(fullname);
	}

	@Override
	public FieldVO addField(FieldVO fieldVO) {
		return bizService.saveField(fieldVO);
	}
	
	@Override
	public FieldVO updateField(FieldVO fieldVO) {
		return bizService.updateField(fieldVO);
	}
	
	@Override
	public void deleteField(String fullname) {
		 bizService.deleteField(fullname);
	}
	
	public  List<Object>  getCustomFieldTypes(Long objId){
		return bizService.getCustomFieldTypes(objId);
	}

	@Override
	public Map<String, Object> getBaseDocList(Map<String, Object> param) {
		return baseDocService.getDocAndDetailList(param);
	}
}
